.class public Lcom/zuiapps/suite/utils/http/HttpUtils;
.super Ljava/lang/Object;
.source "HttpUtils.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 10
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static varargs getByHttpClient(Landroid/content/Context;Ljava/lang/String;[Lorg/apache/http/NameValuePair;)Ljava/lang/String;
    .registers 4
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "strUrl"    # Ljava/lang/String;
    .param p2, "nameValuePairs"    # [Lorg/apache/http/NameValuePair;

    .prologue
    .line 37
    invoke-static {p0, p1, p2}, Lcom/zuiapps/suite/utils/http/CustomHttpClient;->getFromWebByHttpClient(Landroid/content/Context;Ljava/lang/String;[Lorg/apache/http/NameValuePair;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static varargs getByHttpURLConnection(Ljava/lang/String;[Lorg/apache/http/NameValuePair;)Ljava/lang/String;
    .registers 3
    .param p0, "strUrl"    # Ljava/lang/String;
    .param p1, "nameValuePairs"    # [Lorg/apache/http/NameValuePair;

    .prologue
    .line 17
    invoke-static {p0, p1}, Lcom/zuiapps/suite/utils/http/CustomHttpURLConnection;->GetFromWebByHttpUrlConnection(Ljava/lang/String;[Lorg/apache/http/NameValuePair;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static isMobileDataEnable(Landroid/content/Context;)Z
    .registers 4
    .param p0, "context"    # Landroid/content/Context;

    .prologue
    .line 49
    const-string v0, "httpUtils.isMobileDataEnable()"

    .line 51
    .local v0, "TAG":Ljava/lang/String;
    :try_start_2
    invoke-static {p0}, Lcom/zuiapps/suite/utils/network/NetWorkHelper;->isMobileDataEnable(Landroid/content/Context;)Z
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_5} :catch_7

    move-result v2

    .line 56
    :goto_6
    return v2

    .line 52
    :catch_7
    move-exception v1

    .line 54
    .local v1, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 55
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    .line 56
    const/4 v2, 0x0

    goto :goto_6
.end method

.method public static isNetworkAvailable(Landroid/content/Context;)Z
    .registers 2
    .param p0, "context"    # Landroid/content/Context;

    .prologue
    .line 44
    invoke-static {p0}, Lcom/zuiapps/suite/utils/network/NetWorkHelper;->isNetworkAvailable(Landroid/content/Context;)Z

    move-result v0

    return v0
.end method

.method public static isNetworkRoaming(Landroid/content/Context;)Z
    .registers 2
    .param p0, "context"    # Landroid/content/Context;

    .prologue
    .line 87
    invoke-static {p0}, Lcom/zuiapps/suite/utils/network/NetWorkHelper;->isNetworkRoaming(Landroid/content/Context;)Z

    move-result v0

    return v0
.end method

.method public static isWifiDataEnable(Landroid/content/Context;)Z
    .registers 4
    .param p0, "context"    # Landroid/content/Context;

    .prologue
    .line 62
    const-string v0, "httpUtils.isWifiDataEnable()"

    .line 64
    .local v0, "TAG":Ljava/lang/String;
    :try_start_2
    invoke-static {p0}, Lcom/zuiapps/suite/utils/network/NetWorkHelper;->isWifiDataEnable(Landroid/content/Context;)Z
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_5} :catch_7

    move-result v2

    .line 69
    :goto_6
    return v2

    .line 65
    :catch_7
    move-exception v1

    .line 67
    .local v1, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 68
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    .line 69
    const/4 v2, 0x0

    goto :goto_6
.end method

.method public static varargs postByHttpClient(Landroid/content/Context;Ljava/lang/String;[Lorg/apache/http/NameValuePair;)Ljava/lang/String;
    .registers 4
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "strUrl"    # Ljava/lang/String;
    .param p2, "nameValuePairs"    # [Lorg/apache/http/NameValuePair;

    .prologue
    .line 27
    invoke-static {p0, p1, p2}, Lcom/zuiapps/suite/utils/http/CustomHttpClient;->PostFromWebByHttpClient(Landroid/content/Context;Ljava/lang/String;[Lorg/apache/http/NameValuePair;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static varargs postByHttpURLConnection(Ljava/lang/String;[Lorg/apache/http/NameValuePair;)Ljava/lang/String;
    .registers 3
    .param p0, "strUrl"    # Ljava/lang/String;
    .param p1, "nameValuePairs"    # [Lorg/apache/http/NameValuePair;

    .prologue
    .line 13
    invoke-static {p0, p1}, Lcom/zuiapps/suite/utils/http/CustomHttpURLConnection;->PostFromWebByHttpURLConnection(Ljava/lang/String;[Lorg/apache/http/NameValuePair;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static setMobileDataEnabled(Landroid/content/Context;Z)V
    .registers 5
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "enabled"    # Z

    .prologue
    .line 75
    const-string v0, "httpUtils.setMobileDataEnabled"

    .line 77
    .local v0, "TAG":Ljava/lang/String;
    :try_start_2
    invoke-static {p0, p1}, Lcom/zuiapps/suite/utils/network/NetWorkHelper;->setMobileDataEnabled(Landroid/content/Context;Z)V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_5} :catch_6

    .line 83
    :goto_5
    return-void

    .line 78
    :catch_6
    move-exception v1

    .line 80
    .local v1, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 81
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_5
.end method
